import React, {useContext} from "react";
import {TestContext} from "./index";

export const B = () => {
	const {userName, color2} = useContext(TestContext)
	return <div style={{color: color2}}>B组件获取到了:{userName}</div>
}
